<template>
  <div class="site-aside-container">
    <div class="avatar-container">{{ name[0] }}</div>
    <p class="title">{{ classs }}</p>
    <Menu />
    <Contact />
    <p class="footer">zzx备17001719号</p>
  </div>
</template>

<script>
import Menu from "./Menu";
import Contact from "./Contact";
export default {
  components: {
    Menu,
    Contact,
  },
  computed: {
    name() {
      return localStorage.getItem("name");
    },
    classs() {
      return localStorage.getItem("class");
    },
  },
};
</script>

<style scoped lang="less">
@import "~@/styles/var.less";
.site-aside-container {
  width: 100%;
  height: 100%;
  background: @dark;
  padding: 20px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
.avatar-container {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
}
.footer {
  text-align: center;
  font-size: 12px;
}
.title {
  font-size: 1.2em;
  color: #fff;
  text-align: center;
}
</style>

